package com.zmn.oms.dubbo.interfaces.zmn.serviceprovider.part;

import com.zmn.common.dto2.ResponseDTO;
import com.zmn.oms.dubbo.dto.zmn.order.serviceprovider.SpPartDetailDRO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

/**
 * 类描述：服务商配件管理
 *
 * @author wangxiaokun
 * @since 2020/9/10 14:31
 */
@Api(value = "配件管理服务", tags = "配件管理")
public interface ServProviderPartRemoteService {

    /**
     * 通过订单配件id、物流信息id和配件业务查询配件详情和物流信息
     * @param fcOrderPartId 
     * @param applyType
     * @return com.zmn.common.dto2.ResponseDTO<com.zmn.oms.dubbo.dto.zmn.order.serviceprovider.SpPartDetailDRO>
     * @author wangxiaokun
     */
    @ApiOperation(value = "通过订单配件id、物流信息id和配件业务查询配件详情和物流信息", response = ResponseDTO.class, tags = "详情")
    ResponseDTO<SpPartDetailDRO> findPartDetail(@NotNull(message = "fcOrderPartId不能为空")
                                                @Positive(message = "fcOrderPartId必须为大于0的正整数")
                                                @ApiParam(value = "订单配件id", required = true) Integer fcOrderPartId,
                                                @NotNull(message = "applyType不能为空")
                                                @Positive(message = "applyType必须为大于0的正整数")
                                                @ApiParam(value = "配件业务", required = true) Integer applyType);
}
